import { createRouter, createWebHashHistory } from 'vue-router';

const routes = [
  { 
  	path: '/',
  	name: '疼痛管理',
  	component: () => import('/src/pages/index/index.vue'), 
  },
  { 
  	path: '/message',
  	name: '信息',
  	component: () => import('/src/pages/index/message.vue'), 
  },
]

console.log('routes', routes)
// app router
export const router = createRouter({
  history: createWebHashHistory(),
  routes,
  strict: true,
  scrollBehavior: () => ({ left: 0, top: 0 }),
});

// config router
export function setupRouter(app) {
  app.use(router);
}